package com.yand.frame.controller.pay;


import com.github.pagehelper.PageInfo;
import com.yand.frame.entity.PayInfo;
import com.yand.frame.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("pay")
public class PayController {

    @Autowired
    private PayService payService;
    @GetMapping("/payList")
    public String toPage(PayInfo payInfo, Model model){
        PageInfo pageInfo = payService.queryPayList(payInfo);
        model.addAttribute("pageInfo",pageInfo);
        return "pay/pay-list";
    }

}
